package com.yc.cloud.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yc.cloud.common.orm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 硬件区域管理表
 * </p>
 *
 * @author kinggu
 * @since 2025-09-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hw_region")
public class HwRegion extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 区域名称
     */
    @TableField("name")
    private String name;

    /**
     * 行政区划代码
     */
    @TableField("code")
    private String code;

    /**
     * 父级区域ID，0表示根节点
     */
    @TableField("parent_id")
    private Long parentId;

    /**
     * 行政级别：1-省/直辖市, 2-市, 3-市辖区/县
     */
    @TableField("level")
    private Integer level;

    /**
     * 排序字段
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 区域描述
     */
    @TableField("description")
    private String description;

    /**
     * 逻辑删除标志
     */
    @TableField("is_deleted")
    private Byte isDeleted;

    public static final String Name = "name";
    public static final String Code = "code";
    public static final String ParentId = "parent_id";
    public static final String Level = "level";
    public static final String Sort = "sort";
    public static final String Description = "description";
    public static final String IsDeleted = "is_deleted";
}